package com.powernode.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.powernode.domain.UserCollection;
import com.powernode.model.ProdEs;

/**
*内容: 
*作者: cy
*/
public interface UserCollectionService extends IService<UserCollection>{

    /**
     * 分页查询会员的收藏商品
     * @param page
     * @param openId
     * @return
     */
    Page<ProdEs> selectUserCollectProdPage(Page<UserCollection> page, String openId);

    /**
     * 会员新增或者取消商品的收藏
     * @param openId
     * @param prodId
     */
    void addOrCancel(String openId, Long prodId);

}
